$(function(){
    getUserInfo()
})

function getUserInfo(){
    $.ajax({
        URL:"/my/userinfo",
        method:'GET',
        Headers:{
            Authorization:localStorage.getItem('token')||''
        },
        success:function(res){
            console.log(res)
        }
    })
}